<!DOCTYPE HTML>
<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <title>青藤CRM缴费系统</title>
    <meta name="keywords" content="智辉CRM">
    <meta name="description" content="智辉CRM">
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]> 
    <script type="text/javascript" src="Lib/html5.js"></script>
    <script type="text/javascript" src="Lib/respond.min.js"></script>
    <script type="text/javascript" src="Lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__PUBLIC__/css/H-ui.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
    <!--自己的样式-->
    <!-- <link href="Tpl/Assistant/common/expense/Center_index.css" rel="stylesheet" type="text/css"> -->
    <!--[if IE 6]> 
    <script type="text/javascript" src="Lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('.pngfix,.icon');</script> 
    <![endif]-->
    <style>
      .form-horizontal .Validform_checktip{margin-top: -4px}
    </style>
</head>

<body>
    
    <div class="pd-20">
    

    <table class="table table-border table-bordered table-bg" id="orderTable">
      <thead>
        <!-- <tr>
          <th scope="col" colspan="11">所有工单</th>
        </tr> -->
        <tr class="text-c" role="row">
          <th width="100">姓名</th>
          <th width="100">所在区域</th>
          <th width="100">手机号</th>
          <th width="100">历史接单数</th>
          <th width="100">当前接单数</th>
          <th width="100">评价</th>
          <th width="100">在线</th>
          <th width="200">备注</th>
          <th width="80">操作</th>
        </tr>
      </thead>
               <assign name="oid" value="$Think.get.id"/>
      <tbody class="perTableTbody">
        <volist name="data" id="v">
           <tr class="text-c" class="odd" role="row">
             <td width="100">{$v.name}</td>
             <td width="100">{$v.repair_address}</td>
             <td width="100">{$v.mobile}</td>
             <td width="100">{$v.count.history}</td>
             <td width="100">{$v.count.now}</td>
             <td width="100"><span>{$v.star_level}</span></td>
             <td width="100"><span style="color: {$v['onLine']==1?'#28ff00':'#ff1d2f'}">{$v['onLine']==1?'在线':'离线'}</span></td>
             <td width="200">{$v.remark}</td>
               <form class="form_name" method="post" action="{:U('choose')}">
                   <input type="hidden" value="{$oid}" name="oid"/>
                   <input type="hidden" value="{$v.id}" name="mid"/>
             <!--<td width="80"><a href="{:U('choose',array('oid'=>$oid, 'mid'=>$v['id']))}" class="label label-success radius">选择</a></td>-->
             <td width="80"><button type="submit" class="label label-success radius" value="选择">选择</button></td>
           </form>
           </tr>
         </volist>
      </tbody>
    </table>
    <div style="text-align: center;" class="mt-20">{$page}</div>
    
  </div>
    
    
    <script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script>
    
    <script src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
    <script src="Tpl/Assistant/common/expense/layerui.js"></script>
    <script src="__PUBLIC__/Validform/5.3.2/Validform.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
    <script>
        $(function(){
            $(".form_name").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            beforeSubmit:function(curform){
            
                curform.ajaxSubmit({
                type:'POST',
                url:'{:U('Service/WxOrder/choose')}',
                success:function(data){
                  console.log(status);
                  if(data.status==true){
                      layer.msg("指派成功");
                      var index = parent.layer.getFrameIndex(window.name);
                      setTimeout(function(){
                           parent.layer.close(index);
                      },1000);
                      parent.location.reload();

                  }else{
                    layer.msg(data.msg);
                  }
                  }
                });
             return false; 
            }
          });
        });
    </script>
</body>

</html>

